home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / circuits / irsim-ca.2 / irsim-ca / irsim-cap-9.2 / src / ana11 / movetot.c < prev    next >
C/C++ Source or Header  |  1993-01-15  |  670b  |  36 lines

  1. /***** Copyright (C) 1989 Stanford University, Arturo Salz ****/
  2.  
  3. #include "ana.h"
  4. #include "ana_glob.h"
  5.  
  6.  
  7. private void MoveToT( str )
  8.   char  *str;
  9.   {
  10.     TimeType  start;
  11.     double    tmp;
  12.  
  13.     if( str == NULL )
  14.       {
  15.     XBell( display, 0 );
  16.     return;
  17.       }
  18.     tmp = atof( str );
  19.     start = (int) ns2d( tmp );
  20.     if( start < tims.first or start > tims.last or start == tims.start )
  21.     return;
  22.  
  23.     tims.start = start;
  24.     tims.end = start + tims.steps;
  25.     RedrawTimes();
  26.     UpdateScrollBar();
  27.     DrawTraces( start, tims.end );
  28.   }
  29.  
  30.  
  31. public void MoveToTime( s )
  32.    char  *s;                /* the menu string => ignore it */
  33.   {
  34.     Query( "\nEnter Time > ", MoveToT );
  35.   }
  36.